package cn.zsb.zsb.entity;

//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;
//import org.hibernate.validator.constraints.Length;
//
//import javax.validation.constraints.Min;
//import javax.validation.constraints.NotBlank;
//import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

//@ApiModel("学生")
public class Suser implements Serializable {

   // @ApiModelProperty("编号")
    //@Min(value = 1, groups = {Update.class, UpdatePass.class}, message = "编号不能为空")
    private Long id;

   // @ApiModelProperty("姓名")
    //@Pattern(regexp = "[\\u4e00-\\u9fa5]{2,10}", message = "名字至少2个汉字", groups = {Add.class, Update.class})
    private String sname;

   // @ApiModelProperty("就读学校")
  //  @NotBlank(message = "学校不能为空", groups = {Add.class, Update.class})
    private String school;

   // @ApiModelProperty("专业")
   // @NotBlank(message = "专业不能为空", groups = {Add.class, Update.class})
    private String major;

   // @ApiModelProperty("学校类型")
    private String type;

    //@ApiModelProperty("是否毕业")
    private Boolean isgraduate;

    private Date addtime;

    private String openid;

    ///@Pattern(regexp = "1\\d{10}", message = "请输入合法中国手机号", groups = {Add.class, Update.class})
    private String phone;

    private String sex;

    private String addr;

   // @NotBlank(message = "密码不能为空", groups = {Add.class, UpdatePass.class})
   // @Length(min = 6, max = 30, message = "密码至少6个,最多30个", groups = {Add.class, UpdatePass.class})
    private String pass;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname == null ? null : sname.trim();
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school == null ? null : school.trim();
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major == null ? null : major.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public Boolean getIsgraduate() {
        return isgraduate;
    }

    public void setIsgraduate(Boolean isgraduate) {
        this.isgraduate = isgraduate;
    }

    //@DateTimeFormat(pattern = "yyyy/MM/dd")
    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid == null ? null : openid.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr == null ? null : addr.trim();
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass == null ? null : pass.trim();
    }

    @Override
    public String toString() {
        return "Suser{" +
                "id=" + id +
                ", sname='" + sname + '\'' +
                ", school='" + school + '\'' +
                ", major='" + major + '\'' +
                ", type='" + type + '\'' +
                ", isgraduate=" + isgraduate +
                ", addtime=" + addtime +
                ", openid='" + openid + '\'' +
                ", phone='" + phone + '\'' +
                ", sex='" + sex + '\'' +
                ", addr='" + addr + '\'' +
                ", pass='" + pass + '\'' +
                '}';
    }

    //增加
    public interface Add {

    }

    //修改基本信息
    public interface Update {

    }

    //重置密码
    public interface UpdatePass {

    }
}